//
//  GraphicManager.m
//  Coffee
//
//  Created by sabhanayagam b on 5/28/11.
//  Copyright 2011 Cognizant. All rights reserved.
//

#import "GraphicManager.h"


static GraphicManager* _sharedGraphicInfo = nil;

@implementation GraphicManager


+(GraphicManager*) sharedGraphicInfo
{
	@synchronized([GraphicManager class])
	{
		if (!_sharedGraphicInfo)
			[[self alloc] init];
		
		return _sharedGraphicInfo;
	}
	
	return nil;
}

+(id)alloc
{
	@synchronized([GraphicManager class])
	{
		NSAssert(_sharedGraphicInfo == nil, @"Attempted to allocate a second instance of a singleton.");
		_sharedGraphicInfo = [super alloc];
		return _sharedGraphicInfo;
	}
	
	return nil;
}

-(id)init {
	self = [super init];
	if (self != nil) {
		// initialize stuff here
	}
	
	return self;
}


@end
